/*
**  File MultiPlotTypes.h
*/
#ifndef MULTIPLOTTYPESh
#define MULTIPLOTTYPESh

#include "PrintGraphTypes.h"

typedef MyData    *MyDataPtr;
typedef struct
{
    MyDataPtr  data;
    MyData     min;
    MyData     max;
    char       *fil;
} MyDatarec;
typedef MyDatarec *MyDatarecPtr;
typedef struct
{
    MyDatarecPtr datarec;
    MyData       xmin;
    MyData       xmax;
    MyData       ymin;
    MyData       ymax;
    int          data_count;
    int          rec_count;
} MyDataset;
typedef struct
{
    MyData    xmin;
    MyData    xmax;
    MyData    ymin;
    MyData    ymax;
} MyDatasize;

typedef struct plotrec PlotRec;
struct plotrec
{
    int     xminscreen;
    int     xmaxscreen;
    int     yminscreen;
    int     ymaxscreen;
    double  xmap;
    double  ymap;
    MyData  xmin;
    MyData  ymin;
    PlotRec *next;
};

/**************** this part only if THINK_C MacHeaders are not used ****************/

#ifndef _H_MacHeaders                    /* symbol taken from <Mac #includes.c> */

typedef struct {
    short top;
    short left;
    short bottom;
    short right;
} Rect;

typedef struct {
    Rect portRect;
} Window;

typedef Window *WindowPtr;

#endif

/*************** end of conflict with THINK_C MacHeaders *****************/

#endif

